<?PHP $this->_extends('_layouts/manager_layout');?>
<?PHP $this->_block('contents');?>
<style>
.tree ul{}
.tree li{padding:1px 20px; width:200px}
</style>
<h2 class="aa1">商品分类</h2>

<div class="tree">
<ul >
	<?php foreach($categories as $c):?>
		<li><?=$c['name']?>  <a href="<?=url('storemanager/CategoriesEdit',array('category_id'=>$c['category_id']))?>" style="margin-left:20px">#</a>  
		<?php if(count($c['children'])):?>
			<ul><?php foreach($c['children'] as $c2):?>
				<li>  <?=$c2['name']?> <a href="<?=url('storemanager/CategoriesEdit',array('category_id'=>$c2['category_id']))?>" style="margin-left:20px">#</a>
				<?php endforeach;?>
			</ul>
		<?php endif;?>
		</li>
	<?php endforeach;?>
</ul>
</div>
<br style="clear:both">
<a href="<?php echo url('storemanager/CategoriesEdit')?>" classs="anniu">添加商品分类</a><br><br>


<?PHP $this->_endblock();?>

